* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1e0518;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.container .box {
    position: relative;
    width: 320px;
    height: 420px;
    padding: 60px 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 40px 30px;
    transition: 0.5s;
}

.container .box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.container .box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    filter: blur(30px);
    transition: 0.5s;
}

.container .box:hover:before,
.container .box:hover::after {
    left: 20px;
    transform: skewX(0deg);
    width: calc(100% - 90px);
}

.container .box:nth-child(1):before,
.container .box:nth-child(1):after {
    background: linear-gradient(315deg, #ffbc00, #ff0058);
}

.container .box:nth-child(2):before,
.container .box:nth-child(2):after {
    background: linear-gradient(315deg, #03a9f4, #ff0058);
}

.container .box:nth-child(3):before,
.container .box:nth-child(3):after {
    background: linear-gradient(315deg, #4dff03, #00d0ff);
}

.container .box span {
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
}

.container .box span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: 0.5s;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: animate 2s ease-in-out infinite;
}

.container .box:hover span::before {
    top: -20px;
    left: -50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

@keyframes animate {
    0%,
    100% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.container .box span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: 0.5s;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: animate 2s ease-in-out infinite;
}

.container .box:hover span::after {
    top: 250px;
    left: 250px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

.container .box .content {
    position: relative;
    padding: 20px 40px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    color: #fff;
    transition: 0.5s;
}

.containe .box:hover .content {
    left: -25px;
    padding: 60px 40px;
}

.container .box .content h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
}

.container .box .content p {
    font-size: 1em;
    letter-spacing: 1px;
    line-height: 1.2em;
}

.container .box .content a {
    display: inline-block;
    padding: 10px 8px;
    margin-top: 10px;
    background: #fff;
    color: black;
    font-weight: 700;
    font-size: 0.5em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
}